package org.example.test.service.impl;

import org.example.test.entity.Emp;
import org.example.test.mapper.EmpMapper;
import org.example.test.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;



    @Override
    public List<Emp> findAll(String ename) {
        return empMapper.findAll(ename);
    }

    @Override
    public int delete(Integer empno) {
        return empMapper.delete(empno);
    }

    @Override
    public int editEmp(Emp emp) {
        return empMapper.editEmp(emp);
    }

    @Override
    public int addEmp(Emp emp) {
        return empMapper.addEmp(emp);
    }
}
